home *** CD-ROM | disk | FTP | other *** search
/ Galaxy of Games (Gold) / goggold.iso / IE5 / U.S. English / IEW2K_2.CAB / msieftp.dll / HTML / FTPNT5.HTT < prev   
Text File  |  2000-05-26  |  11KB  |  310 lines

  1. <!-- 
  2. * Copyright 1999 Microsoft Corporation.  All rights reserved.
  3. * This file was automatically generated by Microsoft Internet Explorer
  4. * using the file %TEMPLATEDIR%\ftp.htt
  5. -->
  6.  
  7. <HTML>
  8.     <style>
  9.         body        {margin: 0; font: menu; color: black}
  10.         #Panel      {position: absolute; width: 200px; height: 100%; visibility: hidden; overflow: auto}
  11.         #Corner     {padding-left: 12px; padding-top: 11px}
  12.         #FolderIcon {width: 32px; height: 32px}
  13.         #FolderName {margin-top: 8px; font: 13pt/13pt; font-weight: bold}
  14.         #LogoLine   {width: 100%; margin-top: 4px; vertical-align: top}
  15.         #Details    {padding-left: 12px; margin-top: 8px}
  16.         #Locked     {vertical-align: baseline}
  17.         #Preview    {}
  18.         .Movie      {width: 120px; height: 136px}
  19.         .Sound      {width: 120px; height: 46px}
  20.         #Thumbnail  {width: 120px; height: 120px}
  21.         .Legend     {margin-left: 12px; margin-right: -12px}
  22.         #PieChart   {width: 120px; height: 60px; margin-top: 10px}
  23.         #FileList   {position: absolute; left: 200px; width: 100%; height: 100%; tabIndex: 1}
  24.         p           {margin-top: 12px}
  25.         p.Half      {margin-top: 6px}
  26.         button      {font: 8pt Tahoma; margin-left: 12px; background: white; color: black}
  27.         input       {font: 8pt Tahoma}
  28.         .Message    {margin-right: 0; padding: 3px; background: infobackground; color: infotext; border: 1px solid lightgrey}
  29.         .accesskey  {}
  30.     </STYLE>
  31.  
  32.     <HEAD>
  33.     <!-- allow references to any resources you might add to the folder -->
  34.     <BASE href="%THISDIRPATH%\">
  35.  
  36.     <SCRIPT LANGUAGE="vbscript">
  37.         Const g_nCR = 13
  38.         Const g_nLF = 10
  39.  
  40.         Function TranslateCRs(strIn)
  41.         Dim strOut
  42.         strOut = ""
  43.  
  44.         While 0 < Len(strIn)
  45.             if Asc(strIn) = g_nCR then
  46.                 strIn = strIn & " "
  47.                 strIn = Right(strIn, Len(strIn) - 1)
  48.             else
  49.                 strOut = strOut & Chr(Asc(strIn))
  50.             end if
  51.  
  52.             strIn = Right(strIn, Len(strIn) - 1)
  53.         Wend
  54.  
  55.         TranslateCRs = strOut
  56.         end Function
  57.     </SCRIPT>
  58.  
  59.     <SCRIPT LANGUAGE="JavaScript">
  60.         // To localize
  61.         var L_Intro_Text    = "";
  62.         var L_Multiple_Text    = " objects selected.";
  63.         var L_AnonymousUserName_Text = "Anonymous";
  64.         var L_MOTDDialogTitle_Text = "The server has provided the following message about using the server:\n\n";
  65.         var L_ServerLabel_Text = "Server: ";
  66.         var L_UserNameLabel_Text = "User Name: ";
  67.  
  68.         var L_TooltipLoginButton_Text = "This button will display the Login dialog to allow you to login under a different username. This is most often needed when the server won't give you access under the current user.";
  69.         var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  70.         var L_TooltipPassword_Text = "This password and the user name above will be used to attempt to relog you into the server when you click on the 'Login' button.";
  71.         var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  72.         var L_TooltipAnonCheckBox_Text = "Turning this on and clicking the 'Login' button will log you into the server anonymously, which the server may or may not allow. The e-mail address you provide below will be given to the server.";
  73.  
  74.         // Do not localize
  75.         var g_strUserName;
  76.         var g_strPassword;
  77.         var g_strEmailAddress;
  78.         var g_fAnonymousLogin;
  79.         var g_fDelayedLoginInfoInited = 0;
  80.         var g_strAnonymous = "Anonymous";       // Do not localize
  81.  
  82.         function Resize() {
  83.             if (document.body.clientWidth < Panel.style.pixelWidth * 2) {
  84.                 Panel.style.visibility = "hidden";
  85.                 FileList.style.pixelLeft = 0;
  86.             } else {
  87.                 Panel.style.visibility = "visible";
  88.                 FileList.style.pixelLeft = Panel.style.pixelWidth;
  89.             }
  90.             FileList.style.pixelWidth = document.body.clientWidth - FileList.style.pixelLeft;
  91.         }
  92.  
  93.         function Initialize()
  94.         {
  95.             var strMOTD;
  96.  
  97.             // call our Resize() function whenever the window gets resized
  98.             window.onresize = Resize;
  99.             Resize();
  100.             Info.innerHTML = L_Intro_Text;
  101.  
  102.             InitLoginInfo();
  103.             if (1 == DisplayOptions())
  104.                 ToggleOptionsAvailablility();
  105.  
  106.             // fix styles
  107.             var L_SystemFont1_Text = "MS Sans Serif";
  108.             var L_SystemFont2_Text = "MS Shell Dlg";
  109.             var L_SystemFont_Text = "Tahoma, Verdana";
  110.             var tr = document.body.createTextRange();
  111.             if (navigator.cpuClass != "Alpha") {
  112.                 tr.collapse();
  113.                 var actualFont = tr.queryCommandValue("FontName");
  114.                 if (actualFont == L_SystemFont1_Text || actualFont == L_SystemFont2_Text)
  115.                     document.body.style.fontFamily = L_SystemFont_Text;
  116.             } else
  117.                 document.body.style.fontFamily = L_SystemFont_Text;
  118.         }
  119.  
  120.         function DisplayOptions()
  121.         {
  122.             return 0;
  123.         }
  124.  
  125.         function OnMOTDDialog()
  126.         {
  127.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  128.         }
  129.  
  130.         function ToggleOptionsAvailablility()
  131.         {
  132.         }
  133.  
  134.         function InitLoginInfo()
  135.         {
  136.             if (ID_FTPWebView)
  137.             {
  138.         var L_None_Text = "None";
  139.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  140.                 ID_MOTD.innerText = strMOTD;
  141.         ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  142.  
  143.                 document.all.ID_Server.innerText = (L_ServerLabel_Text + ID_FTPWebView.Server);
  144.                 g_strUserName = ID_FTPWebView.UserName;
  145.                 g_fAnonymousLogin = ID_FTPWebView.CurrentLoginAnonymous;
  146.  
  147.                 if (1 == g_fAnonymousLogin)
  148.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strAnonymous);
  149.                 else
  150.                     document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strUserName);
  151.             }
  152.         }
  153.  
  154.         function InitDelayedLoginInfo()
  155.         {
  156.             g_fDelayedLoginInfoInited = 1;
  157.  
  158.             if (null != ID_FTPWebView)
  159.             {
  160.                 g_strPassword = ID_FTPWebView.Password;
  161.                 g_strEmailAddress = ID_FTPWebView.EmailAddress;
  162.  
  163.                 OnAnonymouseChange();
  164.                 OnUserNameChange();
  165.             }
  166.         }
  167.  
  168.         function EnableDisableLoginButton()
  169.         {
  170.         }
  171.  
  172.         function OnAnonymouseChange()
  173.         {
  174.         }
  175.  
  176.         function OnUserNameChange()
  177.         {
  178.         }
  179.  
  180.         function OnEmailAddressChange()
  181.         {
  182.         }
  183.  
  184.         function DisplayLoginDialog()
  185.         {
  186.         }
  187.  
  188.         function OnWebviewLinkEnter( aLink )
  189.         {
  190.             if( aLink.title )
  191.             {
  192.                 window.status = aLink.title;
  193.             }
  194.             else
  195.             {
  196.                 window.status = "";
  197.             }
  198.             return true;
  199.         }
  200.  
  201.         function OnWebviewLinkExit()
  202.         {
  203.             window.status = "";
  204.             return false;
  205.         }
  206.     </SCRIPT>
  207.  
  208.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  209.         // this script updates the left info panel when you select icons
  210.         var folder    = FileList.Folder;
  211.         var data;
  212.         var text;
  213.         var i;
  214.  
  215.         data = FileList.SelectedItems().Count;
  216.         if (data == 0)
  217.         {
  218.             // nothing selected?
  219.             Info.innerHTML = L_Intro_Text;
  220.             return;
  221.         }
  222.         else if (data > 1)
  223.         {
  224.             // more than one item selected?
  225.             text = data + L_Multiple_Text + "<br>";
  226.             if (data <= 16)
  227.             {
  228.                 for (i = 0; i < data; i++)
  229.                 {
  230.                     text += "<br>" + FileList.SelectedItems().Item(i).Name;
  231.                 }
  232.             }
  233.             Info.innerHTML = text + "<br><br>";
  234.             return;
  235.         }
  236.         else if (data == 1)
  237.         {
  238.             Info.innerHTML = "<b>" + FileList.SelectedItems().Item(0).Name + "</b><br><br>";
  239.         }
  240.     </SCRIPT>
  241.  
  242.     <script language="JavaScript">
  243.         function Load() {
  244.             Initialize();
  245.             Resize();
  246.         }
  247.     </script>
  248.  
  249.     <script language="JavaScript" for="WVLink" event="onmouseover">
  250.         return OnWebviewLinkEnter( this );
  251.     </script>
  252.  
  253.     <script language="JavaScript" for="WVLink" event="onfocus">
  254.         return OnWebviewLinkEnter( this );
  255.     </script>
  256.  
  257.     <script language="JavaScript" for="WVLink" event="onmouseout">
  258.         return OnWebviewLinkExit();
  259.     </script>
  260.  
  261.     <script language="JavaScript" for="WVLink" event="onblur">
  262.         return OnWebviewLinkExit();
  263.     </script>
  264.     </HEAD>
  265.  
  266.     <body scroll=no onload=Load()>
  267.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat">
  268.             <div id=Corner>
  269.                 <object id=FolderIcon classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  270.                     <param name="scale" value=100>
  271.                 </object>
  272.                 <br>
  273.                 <div id=FolderName>
  274.                     %THISDIRNAME%
  275.                 </div>
  276.             </div>
  277.             <img id=LogoLine src="%TEMPLATEDIR%\wvline.gif">
  278.             <div id=Details>
  279.  
  280.             <SPAN ID="ID_Server"> </SPAN><BR>
  281.             <SPAN ID="ID_StaticUserName"> </SPAN>
  282.             <BR>
  283.             <BR>
  284.             <ID id=lochack9>
  285.  
  286.             <BR>
  287.  
  288.             <DIV ID="ID_MOTD" CLASS=Message>
  289.             <!-- the message of the day will be inserted here by the script. -->
  290.             </DIV>
  291.             <BR>
  292.             <ID ID=Help>
  293.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()" name="WVLink"> Click here</A> to learn about browsing FTP sites.<BR>
  294.             </ID>
  295.  
  296.             </P>
  297.                 <span id=Info>
  298.                 </span>
  299.             </div>
  300.         </div>
  301.         <object id=FileList tabindex=1 border=0 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  302.         </object>
  303.  
  304.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  305.         </OBJECT>
  306.  
  307.     </BODY>
  308. </HTML>
  309.  
  310.